package com.ruoyi.finance.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.finance.domain.FmsRecord;
import com.ruoyi.finance.mapper.FmsRecordMapper;
import com.ruoyi.finance.service.IFmsRecordService;

/**
 * 财务记录 服务层实现
 *
 * @author 夜雨
 */
@Service
public class FmsRecordServiceImpl implements IFmsRecordService {
    @Autowired
    private FmsRecordMapper recordMapper;

    /**
     * 查询财务记录
     *
     * @param recordId 财务记录ID
     * @return 财务记录
     */
    @Override
    public FmsRecord selectRecordById(Long recordId) {
        return recordMapper.selectRecordById(recordId);
    }

    /**
     * 查询财务记录列表
     *
     * @param record 财务记录
     * @return 公告集合
     */
    @Override
    public List<FmsRecord> selectRecordList(FmsRecord record) {
        return recordMapper.selectRecordList(record);
    }

    /**
     * 新增财务记录
     *
     * @param record 财务记录
     * @return 结果
     */
    @Override
    public int insertRecord(FmsRecord record) {
        return recordMapper.insertRecord(record);
    }

    /**
     * 修改财务记录
     *
     * @param record 财务记录
     * @return 结果
     */
    @Override
    public int updateRecord(FmsRecord record) {
        return recordMapper.updateRecord(record
        );
    }

    /**
     * 删除财务记录
     *
     * @param recordId 财务记录ID
     * @return 结果
     */
    @Override
    public int deleteRecordById(Long recordId) {
        return recordMapper.deleteRecordById(recordId);
    }

    /**
     * 批量删除财务记录
     *
     * @param recordIds 需要删除的财务记录ID
     * @return 结果
     */
    @Override
    public int deleteRecordByIds(Long[] recordIds) {
        return recordMapper.deleteRecordByIds(recordIds);
    }
}
